package net.homelinux.chaoswg.io.renga.krypto.operations.numerical;

import net.homelinux.chaoswg.io.higherorderfunctions.AbstractBinaryFunction;
import net.homelinux.chaoswg.io.higherorderfunctions.BinaryFunction;
import net.homelinux.chaoswg.io.renga.krypto.datatypes.numerical.UnsignedNBit;

public class Sub extends AbstractBinaryFunction<UnsignedNBit, UnsignedNBit, UnsignedNBit> implements BinaryFunction<UnsignedNBit, UnsignedNBit, UnsignedNBit> {
    public UnsignedNBit apply (final UnsignedNBit u0, final UnsignedNBit u1) {
        return u0.subtract(u1);
    }
    
    public String toString () {
        return "Subtract";
    }
}
